package thread;

public class a1 {

	public static void main(String[] args) {
		new Thread("123:"){
			public void run(){
				for (int i = 0; i < 1000; i++) {
					System.out.println(Thread.currentThread().getName()+"****");
				}
			}
		}.start();
		
		new Thread(new Runnable() {
			
			@Override
			public void run() {
				for (int i = 0; i < 1000; i++) {
					System.out.println(Thread.currentThread().getName()+":----");
				}
			}
		},"abc:").start();


		for (int i = 0; i < 1000; i++) {
			System.out.println(Thread.currentThread().getName()+":$$$$");
		}

	}

}
